gtk+: Fix GI warnings about missing parameters
authorGarrett Regier <garrettregier@gmail.com>
Mon, 17 Oct 2016 14:02:37 +0000 (07:02 -0700)
committerGarrett Regier <garrettregier@gmail.com>
Mon, 17 Oct 2016 14:07:20 +0000 (07:07 -0700)
These were removed for GTK+ 4.

gtk/deprecated/gtksymboliccolor.c
gtk/gtkstylecontext.c

index 4190337763eb4d2a88d6262647a386c879376cf7..c2b9d49b8d91707d69ef269390bec61472ed268e 100644 (file)
@@ -270,18 +270,10 @@ gtk_symbolic_color_unref (GtkSymbolicColor *color)
 /**
  * gtk_symbolic_color_resolve:
  * @color: a #GtkSymbolicColor
- * @props: (allow-none): #GtkStyleProperties to use when resolving
- *    named colors, or %NULL
  * @resolved_color: (out): return location for the resolved color
  *
  * If @color is resolvable, @resolved_color will be filled in
- * with the resolved color, and %TRUE will be returned. Generally,
- * if @color can’t be resolved, it is due to it being defined on
- * top of a named color that doesn’t exist in @props.
- *
- * When @props is %NULL, resolving of named colors will fail, so if
- * your @color is or references such a color, this function will
- * return %FALSE.
+ * with the resolved color, and %TRUE will be returned.
  *
  * Returns: %TRUE if the color has been resolved
  *
index ecf0eff2201cc5302ebc3732fb316dfc9259ab99..07ed5a701c1a04deb81a107bbbde80b86f3f49e6 100644 (file)
@@ -741,20 +741,15 @@ gtk_style_context_query_func (guint    id,
  * gtk_style_context_get_property:
  * @context: a #GtkStyleContext
  * @property: style property name
- * @state: state to retrieve the property value for
  * @value: (out) (transfer full):  return location for the style property value
  *
- * Gets a style property from @context for the given state.
+ * Gets a style property from @context for the current state.
  *
  * Note that not all CSS properties that are supported by GTK+ can be
  * retrieved in this way, since they may not be representable as #GValue.
  * GTK+ defines macros for a number of properties that can be used
  * with this function.
  *
- * Note that passing a state other than the current state of @context
- * is not recommended unless the style context has been saved with
- * gtk_style_context_save().
- *
  * When @value is no longer needed, g_value_unset() must be called
  * to free any allocated memory.
  *